Answer:

' Write a user-specified number of dashes across the screen
'
PRINT "How many Dashes"

INPUT  HOWMANY
'
FOR DASH = 1 TO HOWMANY

  PRINT  "-" ;   ' The semicolon keeps the output on one line

NEXT DASH
'
END

Of course, other variable names besides HOWMANY would work, as long as you used the same name in both places.

Familiar Bug in a New Place

Remember this rule about variables: the first time a variable occurs in a program it starts out at zero unless some other value is placed in it with a LET statement. Here is the same program with a slight change (a mistake):

' Write a user-specified number of dashes across the screen
'
PRINT "How many Dashes"

INPUT  HOWMANY
'
FOR DASH = 1 TO MANY

  PRINT  "-" ;   ' The semicolon keeps the output on one line

NEXT DASH
'
END

QUESTION 14:

The user asks for 25 dashes. How many dashes are printed on the screen?